gesturestylus: Use GtkEventControllerEvent events to track changes
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 2 Dec 2021 16:00:10 +0000 (17:00 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 2 Dec 2021 16:06:35 +0000 (17:06 +0100)
commitc8d83b7a63fabf061c9a8696de6ab2575d8b9491
treebedb585cfd2e26a3ab48088889f54e0cf6d67876
parent9539cc4a93819d2915a3e097940f38d00b5bc202
gesturestylus: Use GtkEventControllerEvent events to track changes

We use gtk_gesture_get_last_event() underneath at places that need to
work during ::proximity emission. Since GtkGesture only tracks events
while there are button/touch presses involved, this is not going to
bring the right result there.

Use gtk_event_controller_get_current_event() consistently inside,
which always pokes at the event being handled (which is the correct
intent here).
gtk/gtkgesturestylus.c